import http from './axios'

export const getData = () => {
    return http.request({
        url: '/home/getData',
        method: 'GET',
        params: {}

    })
}
export const getUserList = (params) => {
    return http.request({
        url: '/user/getUserList',
        method: 'GET',
        params: params
    })

}

export const deleteUser = (data) => {
    return http.request({
        url: '/user/deleteUser',
        method: 'POST',
        data
    })

}
export const createUser = (data) => {
    return http.request({
        url: '/user/createUser',
        method: 'POST',
        data
    })
}

export const updateUser = (data) => {
    return http.request({
        url: '/user/updateUser',
        method: 'POST',
        data
    })
}

export const getMenu = (data) => {
    return http.request({
        url: '/permission/getMenu',
        method: 'POST',
        data
    })
}